package com.hyt.it.ogt.kq.service.gov.model.vo.arrange;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.converters.localdatetime.LocalDateTimeStringConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@Builder
@NoArgsConstructor
@Accessors
public class ArrangeResultByTimeVO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "", hidden = true)
    @ExcelIgnore
    private String timeId;

    @ApiModelProperty(value = "批次编号")
    @ExcelIgnore()
    private String timeCode;

    @ApiModelProperty(value = "批次名称")
    @ExcelProperty(value = "批次名称", index = 0)
    private String timeName;

    @ApiModelProperty(value = "批次开始时间")
    @ExcelProperty(value = "批次开始时间", index = 1, converter = LocalDateTimeStringConverter.class)
    private LocalDateTime startTime;

    @ApiModelProperty(value = "批次结束时间")
    @ExcelProperty(value = "批次结束时间", index = 2, converter = LocalDateTimeStringConverter.class)
    private LocalDateTime endTime;

    @ApiModelProperty(value = "考生数")
    @ExcelProperty(value = "考生数", index = 3)
    private int candidateNum;

    @ApiModelProperty(value = "考场数")
    @ExcelProperty(value = "考场数", index = 4)
    private int roomNum;

    @ApiModelProperty(value = "科目数")
    @ExcelProperty(value = "科目数", index = 5)
    private int subjectNum;

    @ApiModelProperty(value = "考场", hidden = true)
    @ExcelIgnore
    private String roomStr;

    @ApiModelProperty(value = "科目", hidden = true)
    @ExcelIgnore
    private String subjectStr;
}
